import { defHttp } from '@/utils/http/axios'

enum Api {
  recruitProcessTotal="/recruitProcess/total",
  universityLevelTotal="/recruitProcess/universityLevelTotal",
  genderTotal="/recruitProcess/genderTotal",
  selectCommonConfigFoChildren="/config/selectCommonConfigFoChildren",
  recruitProcessPage="/recruitProcess/recruitProcessPage",
  updateApplicationTarget="/recruitProcess/updateApplicationTarget"
}

/**
 * 编辑招聘目标
 * @param data
 */
export function updateApplicationTarget(data) {
  return defHttp.post({ url: Api.updateApplicationTarget, data })
}

/**
 * 根据招聘进度配置表信息获取对应的招聘进度分页
 * @param data
 */
export function recruitProcessPage(data) {
  return defHttp.post({ url: Api.recruitProcessPage, data })
}

/**
 * 按照分校和高校等级的维度统计招聘进度数据
 * @param params
 */
export function universityLevelTotal(params) {
  return defHttp.get({ url: Api.universityLevelTotal, params })
}

/**
 * 根据招聘进度配置表信息获取对应的招聘进度列表
 * @param params
 */
export function genderTotal(params) {
  return defHttp.get({ url: Api.genderTotal, params })
}

/**
 * 按照分校和性别的维度统计招聘进度数据
 * @param params
 */
export function recruitProcessTotal(params) {
  return defHttp.get({ url: Api.recruitProcessTotal, params })
}

/**
 * 获取招聘进度顶部菜单结构数据
 * @param params
 */
export function selectCommonConfigFoChildren(params) {
  return defHttp.get({ url: Api.selectCommonConfigFoChildren, params })
}
